<template>
	<view class="message-item-goods">
		<view class="img-box">
			<image :src="$u.file.getMedieUrl(data.image)" mode=""></image>
		</view>
		<view class="footer">
			<view class="des">
				<p>{{data.goodsName}}</p>
				<p>{{data.goodsDesc}}</p>
			</view>
			<button class="follow-btn">关注</button>
		</view>
	</view>
</template>

<script>
	export default {
		name: "msgByVideo",
		props: {
			data: {
				default: () => ({}),
				type: Object
			}
		},
		data() {
			return {}
		},
		mounted() {
			console.log(this.data);
		},
	}
</script>

<style lang="scss" scoped>
	.message-item-goods {
		.img-box {
			border: 20rpx solid #CCCCCC;
			border-bottom: 0;
			height: 300rpx;

			>image {
				width: 100%;
				height: 100%;
			}
		}

		.footer {
			display: flex;
			align-items: center;
			justify-content: space-between;
			padding: 10rpx;
			background-color: #F2F2F2;
			.des{
				flex: auto;
				width: 0;
			}
			.follow-btn {
				background-color: #169BD5;
				color: #fff;
				width: 200rpx;
				height: 50rpx;
				padding: 0;
				line-height: 50rpx;
				font-size: 24rpx;
				margin: 0;
			}

			p {
				display: -webkit-box;
				-webkit-line-clamp: 1;
				overflow: hidden;
				-webkit-box-orient: vertical;

			}
		}
	}
</style>